<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<script type="text/javascript" src="/cad_js/windows.js"></script>
<link href="/app/default/www/styles/common.css" rel="stylesheet" type="text/css" />
<link href="/app/default/www/styles/account.css" rel="stylesheet" type="text/css" />
<link href="/app/default/www/styles/fromnagahtmlers_tobechanged.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/cad_js/forms.js"></script>
<script type="text/javascript" src="/app/default/www/scripts/common.js"></script> 
<script type="text/javascript" src="/yui/yahoo/yahoo-min.js"></script> 
<script type="text/javascript" src="/yui/event/event-min.js"></script> 
<script type="text/javascript" src="/yui/yahoo-dom-event/yahoo-dom-event.js"></script>
<script type="text/javascript" src="/yui/connection/connection-min.js"></script>
<script type="text/javascript" src="/yui/container/container-min.js"></script>

<link rel="stylesheet" type="text/css" href="/yui/build/fonts/fonts-min.css" />
<script type="text/javascript" src="/yui/build/dragdrop/dragdrop-min.js"></script>
<script type="text/javascript" src="/yui/build/element/element-min.js"></script>

<!-- Zoom Image --> 
<link href="/app/default/www/styles/popbox.css" rel="stylesheet" type="text/css" />
<script src="/app/default/www/scripts/PopBox.js" type="text/javascript"></script>

<!--JQuery -->
<script type="text/javascript" src="/app/default/www/scripts/jquery.min.js"></script> 

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>{$pageTitle}</title>
</head>

<body>
<div id="header">
	<img src="/app/default/www/images/trade.jpg" width="100%" height="20%" />
	<h1 class="welcomeText">Welcome {$username}</h1>
	<input id="headerSignout" name="headerSignout" type="button" value="Sign Out" onClick="location.href='/auth/logout/'" />
</div>
<div id="loading" style="position: absolute; left: 430px; top: 400px; z-index: 99; margin: auto; visibility: hidden">
		<img src="/app/default/www/images/loading.gif" />
</div>

<div id="navigation">
	<ul>
		{assign var=menuArray value=$menuUtility->generateMenu(0)}
		{foreach from=$menuArray item=menuItem}
			<li id="{$menuItem.code}" {if $currModule == $menuItem.code}class="selected"{/if}><a href="javascript:void(0);" onClick="selectThisMenu('{$menuItem.code}','{$menuItem.description}id/{$id}/public/{$isPublic}');"" ><span>{$menuItem.value}</span></a></li>
		{/foreach}	
			
	</ul>
</div>
<div class="spacer"></div>
<div class="content_wrapper" id="divAccount">
  {$template_content}
</div>
</body>
<form name="mainForm">
	<input type="hidden" name="actionTpl" value="" id="actionTpl">
	<input type="hidden" name="prevId" value="" id="prevId">
</form>
</html>
<script language="javascript">
{literal}
function openCurrentTab(){
		action = document.getElementById('actionTpl').value ;
		changeTabView(action);
	}
	
	function selectThisMenu(id,action){
		
		document.getElementById('divAccount').innerHTML = '';
		var prevId = document.getElementById('prevId').value;
		if(prevId) {
			document.getElementById(prevId).className = "";
		}
		document.getElementById(id).className = "selected";
		document.getElementById("actionTpl").value = action;
		document.getElementById("prevId").value = id;
		changeTabView(action);
	}
	
	function changeTabView(action){
		document.getElementById('actionTpl').value = action;
		doajaxAction(action,0,'divAccount');
	}
{/literal}
</script>
	
